<?php
$id = $_REQUEST['id'];
$con = mysqli_connect("localhost","root","","friday");
mysqli_set_charset($con,"utf8");

$sql = "UPDATE goods SET state = 'close' where id='{$id}'";
$result = mysqli_query($con, $sql);

echo $result;
//关闭数据库
mysqli_close($con);
?>